import model.User;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.core.io.ClassPathResource;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        BeanFactory beanFactory = new ClassPathXmlApplicationContext("annotate-spring-config.xml");
        BeanFactory beanFactory1 = new XmlBeanFactory(new ClassPathResource("annotate-spring-config.xml"));
        ApplicationContext context = new ClassPathXmlApplicationContext("annotate-spring-config.xml");
        User user = context.getBean("user",User.class);
        user.fun(4);
        model.medelMin.User modelMinUser = context.getBean("userPlus", model.medelMin.User.class);
        modelMinUser.fun("Hello");
    }
}
